'use strict';

/* App Module */

var merydeApp = angular.module('merydeApp', [
  'ngRoute',
  'merydeAnimations',

  'merydeControllers',
  'merydeFilters',
  'merydeServices'
]);

merydeApp.config(['$routeProvider',
  function($routeProvider) {
    $routeProvider.
      when('/merydes', {
        templateUrl: 'partials/meryde-list.html',
        controller: 'MerydesListCtrl'
      }).
      when('/merydes/:merydeName', {
        templateUrl: 'partials/phone-detail.html',
        controller: 'PhoneDetailCtrl'
      }).
      otherwise({
        redirectTo: '/merydes'
      });
  }]);
